/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.db.MessageManager;
/*    */ import com.newcrm.exception.DBException;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.util.Util;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import java.sql.SQLException;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class DeleteWhiteBoard extends AbstractAction
/*    */ {
/* 18 */   private int id = 0;
/*    */ 
/*    */   public DeleteWhiteBoard(AbstractHttpServlet servlet) {
/* 21 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public DeleteWhiteBoard(AbstractHttpServlet servlet, String id) {
/* 25 */     super(servlet);
/* 26 */     this.id = Util.str2Int(id);
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response)
/*    */     throws IOException, ServletException, NotFoundException
/*    */   {
/* 32 */     MessageManager manager = new MessageManager();
/*    */     try {
/* 34 */       manager.delete(this.id);
/*    */     }
/*    */     catch (DBException localDBException) {
/*    */     }
/*    */     catch (SQLException localSQLException) {
/*    */     }
/* 40 */     response.sendRedirect(request.getContextPath() + "/whiteboard");
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.DeleteWhiteBoard
 * JD-Core Version:    0.6.1
 */